getCallingPackage

@Nullable
open fun getCallingPackage(): @Nullable String(source)

Get the name of the package that invoked this sharing intent. If the activity was not started for a result, IntentBuilder will read this from extra metadata placed in the Intent by ShareBuilder.

Note: This data may have been provided voluntarily by the calling application. As such it should not be trusted for accuracy in the context of security or verification.

Return

Name of the package that started this activity or null if unknown

See also